package com.findviewbydream.evil.eda.Data;

import android.content.Intent;
import android.os.Handler;

import com.findviewbydream.evil.eda.Utils.Dialog.CustomMaterialDialog;
import com.findviewbydream.evil.eda.Utils.Utils;
import com.flyco.dialog.listener.OnBtnClickL;

/********************************************
 * 工程名：Eda
 * 包名：com.findviewbydream.evil.eda.Data
 * 时间：16-7-8 下午11:58
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：用户信息数据类
 ********************************************/
public class UserData
{
    /*用户头像*/
    private static String userImg = "";
    /*用户名*/
    private static String userName = "未设置";
    /*用户手机号*/
    private static String userPhoneNum = "";
    /*用户imei*/
    private static String userIMEI = "";
    /*用户获得本月总流量*/
    private static int flow = 0;
    /*用户本日获得流量*/
    private static int todayFlow = 0;


    public static String getUserImg()
    {
        return userImg;
    }

    public static void setUserImg(String userImg)
    {
        UserData.userImg = userImg;
    }

    public static String getUserName()
    {
        return userName;
    }

    public static void setUserName(String userName)
    {
        UserData.userName = userName;
    }

    public static String getUserPhoneNum()
    {
        if (userPhoneNum == null)
        {
            System.exit(0);
            return null;
        }
        else
            return userPhoneNum;
    }

    public static void setUserPhoneNum(String userPhoneNum)
    {
        UserData.userPhoneNum = userPhoneNum;
    }

    public static String getUserIMEI()
    {
        if (userIMEI == null)
        {
            System.exit(0);
            return null;
        }
        else
            return userIMEI;
    }

    public static void setUserIMEI(String userIMEI)
    {
        UserData.userIMEI = userIMEI;
    }

    public static int getFlow()
    {
        return flow;
    }

    public static void setFlow(int flow)
    {
        UserData.flow = flow;
    }

    public static int getTodayFlow()
    {
        return todayFlow;
    }

    public static void setTodayFlow(int todayFlow)
    {
        UserData.todayFlow = todayFlow;
    }
}
